package com.my.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.my.entity.Curriculum;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedList;
import java.util.Map;

public interface CurriculumMapper extends BaseMapper<Curriculum> {

    IPage<Curriculum> getList(IPage<Curriculum> page, @Param("cu") Curriculum curriculum);

    LinkedList<Map<String, Object>> getUserCurriculum(String time);

    Map<String, Object> getCurrentClockInCurriculum(Long userId);

    String upToDate(Long userId);

}
